<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:55:"D:\GitCode\LayZy/application/admin\view\index_home.html";i:1577548461;s:49:"D:\GitCode\LayZy\application\admin\view\base.html";i:1576323868;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>LaySNS后台管理</title>
<link rel="stylesheet" href="/public/plugins/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="/public/css/main.css" media="all" /> 
<link rel="stylesheet" href="/public/css/font.css">
<link rel="stylesheet" href="/public/css/admin.css">
<script src="/public/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/public/plugins/layui/layui.js"></script>
</head>

<body>

    <!--主体-->
    <div style="margin-bottom:36px;">

        
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <blockquote style="padding: 10px;border-left: 5px solid #009688;" class="layui-elem-quote">
                        欢迎使用layres资源系统 <a style="color: #1aa094" target="_blank" href="https://www.laysns.com/thread/2726.html">帮助文档</a>
                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">数据统计</div>
                <div class="layui-card-body ">
                    <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                        <li class="layui-col-md2 layui-col-xs6 ">
                            <a href="<?php echo url('admin/article/index'); ?>" class="x-admin-backlog-body">
                                <h3>待审资源</h3>
                                <p>
                                    <cite><?php echo $tongji['resourceWaitCount']; ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="<?php echo url('admin/article/index'); ?>" class="x-admin-backlog-body">
                                <h3>今日新增资源</h3>
                                <p>
                                    <cite><?php echo $tongji['todayUpdateResCount']; ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6 ">
                            <a href="<?php echo url('admin/article/index'); ?>" class="x-admin-backlog-body">
                                <h3>资源总数</h3>
                                <p>
                                    <cite><?php echo $tongji['resourceCount']; ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="<?php echo url('admin/siteAdmin/index'); ?>" class="x-admin-backlog-body">
                                <h3>待审网站</h3>
                                <p>
                                    <cite><?php echo $tongji['siteWaitCheck']; ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="<?php echo url('admin/FriendLink/index'); ?>" class="x-admin-backlog-body">
                                <h3>待审友链</h3>
                                <p>
                                    <cite><?php echo $tongji['friendlyLinkWaitCheck']; ?></cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="<?php echo url('admin/user/index'); ?>" class="x-admin-backlog-body">
                                <h3>用户总数</h3>
                                <p>
                                    <cite><?php echo $tongji['userCount']; ?></cite></p>
                            </a>
                        </li>


                    </ul>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统信息</div>
                <div class="layui-card-body ">
                    <table class="layui-table">
                        <tbody>
                        <tr>
                            <th>程序版本</th>
                            <td>layres资源系统 V<?php echo $oldver; if(isset($versioninfo['version'])): ?>【发现新版本<?php echo $versioninfo['version']; ?><a href="javascript:;"
                                                                                                 data-key="<?php echo $updatekey; ?>"
                                                                                                 data-url="<?php echo url('index/handle',array('type'=>'downmain','verid'=>$versioninfo['id'])); ?>"
                                                                                                 id="update"
                                                                                                 style="color:#FF5722;">点击升级</a>
                                <a class="layui-btn layui-btn-xs" target="_blank"
                                   href="https://www.laysns.com/plinfo/159.html">升级日志</a>】<?php endif; ?>
                            </td>
                        </tr>
                        <tr>
                            <th>操作系统</th>
                            <td><?php echo php_uname('s'); ?></td>
                        </tr>
                        <tr>
                            <th>PHP版本</th>
                            <td><?php echo PHP_VERSION; ?></td>
                        </tr>
                        <tr>
                            <th>Zend版本</th>
                            <td><?php echo Zend_Version(); ?></td>
                        </tr>
                        <tr>
                            <th>服务器解译引擎</th>
                            <td><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
                        </tr>
                        <tr>
                            <th>服务器语言</th>
                            <td><?php echo $_SERVER['HTTP_ACCEPT_LANGUAGE']; ?></td>
                        </tr>
                        <tr>
                            <th>服务器Web端口</th>
                            <td><?php echo $_SERVER['SERVER_PORT']; ?></td>
                        </tr>
                        <tr>
                            <th>服务器上传文件大小限制</th>
                            <td>upload_max_files：<?php echo ini_get('post_max_size'); ?> /
                                post_max_size：<?php echo ini_get('upload_max_filesize'); ?>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">版权信息</div>
                <div class="layui-card-body ">
                    <table class="layui-table">
                        <tbody>
                        <tr>
                            <th>版权所有</th>
                            <td>武汉类森科技有限公司
                                <a href="https://www.laysns.com/" target="_blank">访问官网</a></td>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <style id="welcome_style"></style>
    </div>
</div>

    </div>

    

    <script>
        var token = '<?php echo $token; ?>';
    </script> 
    <!--页面JS脚本-->
    
<script>
    layui.use(['layer', 'jquery'], function () {
        var jq = layui.jquery;

        jq('#hiddenbq').on('click', function () {
            var url = jq(this).data('url');
            var loading = layer.load(2, {
                shade: [0.2, '#000']
            });
            jq.getJSON(url, function (data) {
                layer.close(loading);

                if (data.code == 200) {

                    layer.msg(data.msg, {
                        icon: 1,
                        time: 1000
                    }, function () {
                        location.reload();
                    });
                } else {

                    layer.msg(data.msg, {
                        icon: 2,
                        anim: 6,
                        time: 1000
                    });
                }
            });
        });
        jq('#update').click(function () {
            var url = jq(this).data('url');
            layer.confirm('升级之前请先备份好自己修改过的模板文件？', {
                btn: ['已备份好', '没有'] //按钮
            }, function (index) {
                layer.close(index);
                var loading = layer.load(2, {
                    shade: [0.2, '#000']
                });
                jq.getJSON(url, function (data) {
                    layer.close(loading);

                    if (data.code == 200) {

                        layer.msg(data.msg, {
                            icon: 1,
                            time: 1000
                        }, function () {
                            location.reload();
                        });
                    } else {

                        layer.msg(data.msg, {
                            icon: 2,
                            anim: 6,
                            time: 1000
                        });
                    }
                });
                return false;
            }, function (index) {
                layer.close(index);
            });

        });
    });
    console.log('采集秘钥为：<?php echo session_id();?>');
</script>

</body>

</html>